<%@ page pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div class="titlediv" align="center">
	<div align="right">
		<a href="<%=basePath %>servlet/LoginServlet?type=logout">退出</a>
	</div>
	<h1>宠物诊所应用</h1>
	<div align="left">
		<a href="<%=basePath %>user/doctorsearch.jsp">兽医</a>
		<a href="<%=basePath %>user/petsearch.jsp">宠物</a>
		<a href="<%=basePath %>user/manage.jsp">管理</a>
	</div>
	<div>
		<%
			String msg = (String)session.getAttribute("msg");
			if(msg != null){
				out.println(msg);
				session.removeAttribute("msg");
			}
		 %>
	</div>
</div>
